package com.xiao.train.batch.controller;

import com.xiao.train.batch.feign.BusinessFeign;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class TestController {
    @Resource
    BusinessFeign businessFeign;

    @GetMapping("hello")
    public String hello() {
        log.info(businessFeign.hello());
        return "Hello World! Batch!" + businessFeign.hello();
    }
}
